package com.example.esc_im_client.utils;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.util.Base64;

/**
 * @ClassName: Base64ImageDecoder
 * @Description:
 * @Author: 墨渍
 * @Date: 2023/10/16 22:28
 **/
public class Base64ImageDecoder {

    public static Bitmap decodeBase64ToBitmap(String base64Image) {
        byte[] decodedBytes = Base64.decode(base64Image, Base64.DEFAULT);
        return BitmapFactory.decodeByteArray(decodedBytes, 0, decodedBytes.length);
    }
}
